home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.apps.comm,comp.os.ms-windows.apps.word-proc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.windows.misc
- Path: newsfeed.internetmci.com!iglou!news
- From: kbc@iglou.com (Keith Burton)
- Subject: Re: Help finding contents of current directory.
- X-Nntp-Posting-Host: dp-2-17.iglou.net
- Message-ID: <DpFJ8x.DCn@iglou.com>
- Sender: news@iglou.com (News Administrator)
- Organization: IgLou Internet Services (1-800-436-4456)
- X-Newsreader: Forte Agent .99c/32.126
- References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net> <4icvkb$ogn@pinta.kolumbus.fi> <4in24g$ota@airdmhor.gen.nz> <827459606snz@tsys.demon.co.uk>
- Date: Sat, 6 Apr 1996 07:43:08 GMT
-
- Greetings,
-
- I've been using the Win32 "FindFirstFile" and "FindNextFile" functions
- without any problems.
-
- Keith Burton
-
- Tom Wheeley <tomw@tsys.demon.co.uk> wrote:
-
- >In article <4in24g$ota@airdmhor.gen.nz>
- > gumboot@airdmhor.gen.nz "Simon Hosie" writes:
- >
- >> Dale Hollon (hollon@gate.net) wrote:
- >> > I am trying to get a listing of the files in the current directory. I realize
- >> I will have to use
- >> > stat to determin wether it is a file or a directory. But how do I find out
- >> what's in the
- >> > directory in the first place.
- >>
- >> Tommi Ylikulju:
- >> > I use _dos_findfirst and _dos_findnext functions to find out a listing of
- >> > files in a specific directory. Check C documention for more info about
- >> > those functions.
- >>
- >> Umm, they're very DOSish functions.. are there not UNIXish functions that
- >> do the same thing but are also supported by DOS compilers?
- >
- >opendir, readdir and closedir
- >
- >Similar to Findfirst and findnext under dos.
- >
- >I doubt that you can use a construct directly accross unix/dos; you'll
- >probably need some #ifdefs :|
- >
- >Maybe DJGPP supports the unix functions as is? I doubt it, seeing as it is
- >an OS call. We can't expect DOS to be POSIX now, can we :)
- >
- >.splitbung
- >--
- >* TQ 1.0 * The 'Just So Quotes'.
- >Artificial Intelligence: the art of making computers that behave like the
- >ones in movies.
- > -- Bill Bulko
-
-
-